package mobi.hami.huapin.base;

import org.apache.log4j.Priority;
import org.apache.log4j.RollingFileAppender;

/**
 * Create by 小峰 on 2018/10/16.
 * 重写Log日志的级别处理
 * https://blog.csdn.net/programmer_sir/article/details/43989051
 */
public class MyLogAppender extends RollingFileAppender {
    @Override
    public boolean isAsSevereAsThreshold(Priority priority) {
        return this.getThreshold().equals(priority);
    }
}
